// 使用 Factor 类

class Factor {
    private int value;

    public Factor(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }
}
public class demo2 {
    public static void main(String[] args) {
        Factor factor = new Factor(6);
        System.out.println("因子值: " + factor);
    }
}

